<html data-dpr="1" style="font-size: 37.5px;">
 <head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
  <meta id="i18n_pagename" content="tkinfo1-common">
  <title>{:C('sitename')}-取出申请</title>
  <link href="/ascss/1.css" rel="stylesheet" />
  <style type="text/css" title="fading circle style">.circle-color-12 > div::before { background-color: #ccc; }</style>
   <script>
    (function (win, lib) {
      var doc = win.document
      var docEl = doc.documentElement
      var metaEl = doc.querySelector('meta[name="viewport"]')
      var flexibleEl = doc.querySelector('meta[name="flexible"]')
      var dpr = 0
      var scale = 0
      var tid
      var flexible = lib.flexible || (lib.flexible = {})
 
      if (metaEl) {
        console.warn('将根据已有的meta标签来设置缩放比例')
        var match = metaEl.getAttribute('content').match(/initial\-scale=([\d\.]+)/)
        if (match) {
          scale = parseFloat(match[1])
          dpr = parseInt(1 / scale)
        }
      } else if (flexibleEl) {
        var content = flexibleEl.getAttribute('content')
        if (content) {
          var initialDpr = content.match(/initial\-dpr=([\d\.]+)/)
          var maximumDpr = content.match(/maximum\-dpr=([\d\.]+)/)
          if (initialDpr) {
            dpr = parseFloat(initialDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
          if (maximumDpr) {
            dpr = parseFloat(maximumDpr[1])
            scale = parseFloat((1 / dpr).toFixed(2))
          }
        }
      }
 
      if (!dpr && !scale) {
        var isAndroid = win.navigator.appVersion.match(/android/gi)
        var isIPhone = win.navigator.appVersion.match(/iphone/gi)
        var devicePixelRatio = win.devicePixelRatio
//          if (isIPhone) {
//            // iOS下，对于2和3的屏，用2倍的方案，其余的用1倍方案
//            if (devicePixelRatio >= 3 && (!dpr || dpr >= 3)) {
//              dpr = 3;
//            } else if (devicePixelRatio >= 2 && (!dpr || dpr >= 2)){
//              dpr = 2;
//            } else {
//              dpr = 1;
//            }
//          } else {
//            // 其他设备下，仍旧使用1倍的方案
//            dpr = 1;
//          }
        dpr = 1
        scale = 1 / dpr
      }
 
      docEl.setAttribute('data-dpr', dpr)
      if (!metaEl) {
        metaEl = doc.createElement('meta')
        metaEl.setAttribute('name', 'viewport')
        metaEl.setAttribute('content', 'initial-scale=' + scale + ', maximum-scale=' + scale + ', minimum-scale=' + scale + ', user-scalable=no')
        if (docEl.firstElementChild) {
          docEl.firstElementChild.appendChild(metaEl)
        } else {
          var wrap = doc.createElement('div')
          wrap.appendChild(metaEl)
          doc.write(wrap.innerHTML)
        }
      }
 
      function refreshRem () {
        var width = docEl.getBoundingClientRect().width
        if (width / dpr > 540) {
          width = 540 * dpr
        }
        var rem = width / 10
        docEl.style.fontSize = rem + 'px'
        flexible.rem = win.rem = rem
      }
 
      win.addEventListener('resize', function () {
        clearTimeout(tid)
        tid = setTimeout(refreshRem, 300)
      }, false)
      win.addEventListener('pageshow', function (e) {
        if (e.persisted) {
          clearTimeout(tid)
          tid = setTimeout(refreshRem, 300)
        }
      }, false)
 
      if (doc.readyState === 'complete') {
//          doc.body.style.fontSize = 12 * dpr + 'px';
        doc.body.style.fontSize = 16 + 'px'
      } else {
        doc.addEventListener('DOMContentLoaded', function (e) {
//            doc.body.style.fontSize = 12 * dpr + 'px';
          doc.body.style.fontSize = 16 + 'px'
        }, false)
      }
 
      refreshRem()
 
      flexible.dpr = win.dpr = dpr
      flexible.refreshRem = refreshRem
      flexible.rem2px = function (d) {
        var val = parseFloat(d) * this.rem
        if (typeof d === 'string' && d.match(/rem$/)) {
          val += 'px'
        }
        return val
      }
      flexible.px2rem = function (d) {
        var val = parseFloat(d) / this.rem
        if (typeof d === 'string' && d.match(/px$/)) {
          val += 'rem'
        }
        return val
      }
 
    })(window, window['lib'] || (window['lib'] = {}))
  </script>
  <!-- 环境判断:测试、正式 -->
  <script>
    var host = window.location.host
    ;(function isFormalEnv(host){
      if(host.indexOf('kw13.cn') !== -1){
        window.isFormalEnv = true
        window.isTestEnv = false
      } else if(host.indexOf('kwmzy.com') !== -1) {
        window.isTestEnv = true
        window.isFormalEnv = false
      }
    })(host)
  </script>
  <!-- 腾讯移动统计配置 -->
  <script>
    var mtah5 = {}
    if(window.isFormalEnv){
      mtah5.sid = 500411881
      mtah5.cid = 500432840
    } else { // 本地、测试环境使用
      mtah5.sid = 500412096
      mtah5.cid = 500426037
    }
    var _mtac = {"performanceMonitor":1,"senseQuery":1};
    (function() {
      var mta = document.createElement("script");
      mta.setAttribute("name", "MTAH5");
      mta.setAttribute("sid", mtah5.sid);
      mta.setAttribute("cid", mtah5.cid);
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(mta, s);
    })();
  </script>
  <script>
    window.origin = window.location.origin
  </script>
 </head>
 <body style="font-size: 12px;">
 <div id="app">
   <div data-v-8aa9b9ee="" class="main">
   <form class="m-t form-horizontal " role="form" method="post" action="{:U('Home/Fen/xia')}" id="LoginForm">
    <div data-v-8aa9b9ee="" class="header">
     <div class="left_btn" onclick="location.href='/Home/Run/index'">
      <img style="margin-top:13px;"src="/asimages/fanhui.png" alt="" class="return" />
     </div> 
     <div class="Maintitle">
      <h3 data-language="tkinfo-qchb">取出货币</h3>
     </div> 
    </div> 
    <!----> 
<div data-v-8aa9b9ee="" class="Cash_add"><a data-v-8aa9b9ee="" href="/Home/user/tkInfo" class=""><div data-v-8aa9b9ee="" class="c6"><img data-v-8aa9b9ee="" src="/asimages/bangka.png" alt=""> <p data-v-8aa9b9ee="" data-language="tkinfo-tjbz">添加币种</p></div></a></div> 
    <!--div data-v-8aa9b9ee="" class="Cash_num">
     <h3 data-v-8aa9b9ee="">取出货币</h3> 
     <div data-v-8aa9b9ee="" class="Cash_num_money">
      <span data-v-8aa9b9ee="">￥</span> 
      <input data-v-8aa9b9ee="" type="text" id="money" name="money" onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'')}else{this.value=this.value.replace(/\D/g,'')}" onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,'0')}else{this.value=this.value.replace(/\D/g,'')}"  placeholder="请输入转出金额" / readonly ="readonly">
     </div>
     <input type="text" id="bank_account" name="bank_account" class="form-control" readonly  value="{$info.bank}" style="display:none;">	 
	 <input type="text" id="back_address" name="back_address" class="form-control" readonly value="{$info.bank_name}" style="display:none;">
	 <input type="text" id="back_name" name="back_name" class="form-control" readonly value="{$info.bank_user}" style="display:none;">
     <h4 data-v-8aa9b9ee="">&nbsp;</h4> 
     <h3 data-v-8aa9b9ee="">资金密码</h3> 
     <div data-v-8aa9b9ee="" class="Cash_num_password">
     <input style="background-color: #FFF;background-image: none;border: 1px solid #e5e6e7;border-radius: 1px;color: inherit;display: block;padding: 6px 12px;" type="password" id="password" name="password" class="form-control" readonly ="readonly">
     </div>
    </div--> 
    <div data-v-8aa9b9ee="" class="Cash_num">
     <!----h3 data-v-8aa9b9ee="">取出说明</h3!----> 
     <h4 data-v-8aa9b9ee="" data-language="tkinfo-zysx">注：您当前没有绑定币种信息，请先绑定信息后再取出</h4>
     
     
    </div> 
	<!----input type="hidden" name="uid" value="{$userinfo.id}">
    <button data-v-8aa9b9ee="" type="submit" class="btn btn-success block full-width m-b">马上转出</button!---->
	</form>
   </div>
  </div>
 <script src="__PUBLIC__/Admin/js/jquery.min.js?v=2.1.4"></script>
 <script src="/ascss/js/jquery.i18n.properties.js"></script>
		<script src="/ascss/js/language.js"></script>
		<script src="__PUBLIC__/Admin/js/bootstrap.min.js?v=3.3.6"></script>
		
		<script src="__PUBLIC__/Common/js/ajaxForm.js"></script>
		<script src="__PUBLIC__/layer/layer.js"></script>
		<script type="text/javascript">
			$('.type_choose').change(function(){
					var index = $(this).val();
					if (index == 1) {
						$('.wx_choose').show();
						$('.alipay_choose').hide();
						$('.bank_choose').hide();
					} else if(index ==2){
						$('.wx_choose').hide();
						$('.alipay_choose').show();
						$('.bank_choose').hide();
					} else {
						$('.wx_choose').hide();
						$('.alipay_choose').hide();
						$('.bank_choose').show();
					}
				})
			
			/*$('.type_choose').change(function(){
				var index = $(this).val();
				if (index == 1) {
					$('.wx_choose').show();
					$('.alipay_choose').hide();
					$('.bank_choose').hide();
				} else if(index ==2){
					$('.wx_choose').hide();
					$('.alipay_choose').show();
					$('.bank_choose').hide();
				} else {
					$('.wx_choose').hide();
					$('.alipay_choose').hide();
					$('.bank_choose').show();
				}
			})*/

			$(function(){
				$('#LoginForm').ajaxForm({
					beforeSubmit: checkForm,
					success: complete, 
					dataType: 'json'
				});
				function checkForm(){
					if ($("#money").val() > parseInt($('.points').text())) {
						layer.alert('余额不足', {icon: 5}, function(index){
			 			layer.close(index);
						$('#money').focus(); 
						});
						return false;
					}
				}
				function complete(data){
					if(data.status==1){
						$('.btn').attr('disabled','disabled');
						layer.msg(data.info, function(index){
			 				layer.close(index);
							window.location.href=data.url;
						});
					}else{
						layer.msg(data.info);
						$('#password').val('').focus();
						return false;	
					}
				}
			});
		</script>
		</script>
		<script src="__PUBLIC__/Home/js/cls.js"></script>
 </body>
</html>